<!DOCTYPE html>
<html>
  <head>
    <title>form edit</title>
    <link href="css/bootstrap/css/bootstrap.css?2023" rel="stylesheet" type="text/css" />
  </head>
  <body>

<div class="container">

<div class="row">
    <ol class="breadcrumb">
        <li><a href="/fd">表单设计器</a> <span class="divider">/</span></li>
        <li><a href="/fd/forms">实例</a> <span class="divider">/</span></li>
     </ol>
</div>

<div class="row">

<p>
    <a href="/fd/form_edit" class="btn btn-info btn-sm"><span class="glyphicon glyphicon-plus"></span> 添加</a>
</p>

	<table class="table table-bordered">
		<tr><th>name</th><th>desc</th><th>操作</th></tr>
		<% forms.forEach(form => { %>
			<tr><td><%= form.form_name %></td>
				<td><%= form.form_desc %></td>
				<td>
					<% if (form.fields > 0) { %>
			            <a href="/fd/form_data_list?id=<%= form.id %>" ><span class="glyphicon glyphicon-list"></span> 表单数据</a>&nbsp;&nbsp;&nbsp;&nbsp;
			        <% } %>
					<a href="/fd/form_design?id=<%= form.id %>" ><span class="glyphicon glyphicon-new-window"></span> 设计</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="/fd/form_preview?id=<%= form.id %>" ><span class="glyphicon glyphicon-eye-open"></span> 预览</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="/fd/form_edit?id=<%= form.id %>"><span class="glyphicon glyphicon-edit"></span> 编辑</a>
				</td>
			</tr>
		<% }) %>
	</table>

</div><!--end row-->
</div><!--end container-->

</body>
</html>